package com.px.auditRecord.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.px.auditRecord.mapper.ForRecordRoutesMapper;
import com.px.auditRecord.domain.ForRecordRoutes;
import com.px.auditRecord.service.IForRecordRoutesService;

/**
 * 备案航线Service业务层处理
 * 
 * @author WRJ
 * @date 2024-08
 */
@Service
public class ForRecordRoutesServiceImpl implements IForRecordRoutesService 
{
    @Autowired
    private ForRecordRoutesMapper forRecordRoutesMapper;

    /**
     * 查询备案航线
     * 
     * @param id 备案航线主键
     * @return 备案航线
     */
    @Override
    public ForRecordRoutes selectForRecordRoutesById(Integer id)
    {
        return forRecordRoutesMapper.selectForRecordRoutesById(id);
    }

    /**
     * 查询备案航线列表
     * 
     * @param forRecordRoutes 备案航线
     * @return 备案航线
     */
    @Override
    public List<ForRecordRoutes> selectForRecordRoutesList(ForRecordRoutes forRecordRoutes)
    {
        return forRecordRoutesMapper.selectForRecordRoutesList(forRecordRoutes);
    }

    /**
     * 新增备案航线
     * 
     * @param forRecordRoutes 备案航线
     * @return 结果
     */
    @Override
    public int insertForRecordRoutes(ForRecordRoutes forRecordRoutes)
    {
        return forRecordRoutesMapper.insertForRecordRoutes(forRecordRoutes);
    }

    /**
     * 修改备案航线
     * 
     * @param forRecordRoutes 备案航线
     * @return 结果
     */
    @Override
    public int updateForRecordRoutes(ForRecordRoutes forRecordRoutes)
    {
        return forRecordRoutesMapper.updateForRecordRoutes(forRecordRoutes);
    }

    /**
     * 批量删除备案航线
     * 
     * @param ids 需要删除的备案航线主键
     * @return 结果
     */
    @Override
    public int deleteForRecordRoutesByIds(Integer[] ids)
    {
        return forRecordRoutesMapper.deleteForRecordRoutesByIds(ids);
    }

    /**
     * 删除备案航线信息
     * 
     * @param id 备案航线主键
     * @return 结果
     */
    @Override
    public int deleteForRecordRoutesById(Integer id)
    {
        return forRecordRoutesMapper.deleteForRecordRoutesById(id);
    }
}
